package com.nsl.my_youlai.bbu2.model.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.nsl.my_youlai.mystar.easy_excel.check.annotations.ExcelNotNull;
import com.nsl.my_youlai.mystar.easy_excel.check.annotations.ExcelNumber;
import com.nsl.my_youlai.mystar.easy_excel.check.annotations.ExcelValueRange;
import com.nsl.my_youlai.mystar.easy_excel.model.ExcelStringRecorde;
import lombok.Data;

@Data
public class ApparatusRoomVoExcelString extends ExcelStringRecorde {

    private Long id;

    @ExcelProperty("机房编号")
    @ExcelNotNull
    private String roomId;

    @ExcelProperty("地市")
    @ExcelNotNull
    private String city ;
    @ExcelProperty("区县")
    private String county ;

    @ExcelProperty({"机房产权"})
    @ExcelNotNull
    @ExcelValueRange({"自有","铁塔","第三方"})
    private String ownership ;

    @ExcelProperty("本站机房归类")
    @ExcelNotNull
    @ExcelValueRange({"核心局站","汇聚局站","基站机房","接入机房"})
    private String roomCategory ;
    @ExcelProperty("是否为锚点机房")
    @ExcelValueRange({"是","否"})
    @ExcelNotNull
    private String isAnchorRoom ;
    //@ExcelProperty(value="制式",converter = GenerationTypeEnumConvert.class)

    @ExcelProperty("机房位置")
    @ExcelNotNull
    private String location ;
    @ExcelProperty("经度")
    @ExcelNumber
    @ExcelNotNull
    private String longitude;
    @ExcelProperty("纬度")
    @ExcelNumber
    @ExcelNotNull
    private String latitude;

    @Override
    public String toString() {
        return "ApparatusRoomVoExcelString{" +
                "rowIndex=" + super.getRowIndex() +
                ", id='" + roomId + '\'' +
                ", city='" + city + '\'' +
                ", county='" + county + '\'' +
                ", ownership='" + ownership + '\'' +
                ", roomCategory='" + roomCategory + '\'' +
                ", isAnchorRoom='" + isAnchorRoom + '\'' +
                ", location='" + location + '\'' +
                ", longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                '}';
    }
//    String[] s={"a","b"};
}
